Digital signal processor for use in recording and/or reproducing equipment

ABSTRACT

A digital signal processor for recording an analog signal in the form of a PCM signal and/or for reproducing the PCM signal in the form of an analog signal. It has functions of generating a first and a second check code each by performing a modulo 2 operation and of adding a third check code to each of the first and the second check codes for detecting errors. The original signals can thereby be restored completely, even when up to two data sets have been subjected to errors.

This is a continuation of application Ser. No. 97,549, filed Nov. 26, 1979, now abandoned.

BACKGROUND OF THE INVENTION

This invention relates to a digital signal processor, and more particularly to recording equipment which records, on magnetic tape or other recording media, an analog signal, such as an audio signal, after converting it into a pulse-code modulation signal (hereafter referred to as a PCM signal). It records in reproducing equipment, which reproduces the original analog signal by converting the PCM signal read out from the recording medium, or in signal processing devices which are used in equipment which has recording and reproducing functions as above (for example, PCM tape recorders, PCM disc recorders/reproducers) in order to enable the faithful recording and reproduction of signals.

When a PCM code recorded in a recording medium is reproduced, the reproduced code is subject to errors due to various causes. On the reproduction side in this case, the data which has been subjected to errors must be corrected.

SUMMARY OF THE INVENTION

It is an object of this invention to provide a digital signal processor which can restore the original signal substantially completely, even when they have been subjected to errors.

This invention enables signal recording equipment, signal reproducing equipment, signal reproducing/recording equipment, or other signal processing equipment to correct errors. It uses a number of sets of data, each of which is composed of G bits (where G is an integer equal to or greater than 2), generating a first check code by the sum of modulo 2 of each bit of sets of sampled data, generating a second check code by modulo 2 operation for each bit of data which is obtained by multiplying each data word by each matrix of G columns and G rows, and adding a third check code to the above data word and the first check code and the second check code for detecting errors. It thus provides a system that can restore the original signal completely, even when up to two data words have been subjected to errors.

BRIEF DESCRIPTION OF THE DRAWINGS

Details of this invention will be apparent upon consideration of the following detailed descriptions taken in conjunction with the accompanying drawings, in which:

FIG. 1 shows an example of the layout of data in one horizontal line period of a recorded signal;

FIG. 2 is for explanation of interleaving;

FIG. 3 shows an example of a P and Q code generation circuit which may be used in relation to this invention;

FIG. 4 shows an example of a T matrix operation circuit;

FIG. 5 shows an example of construction of a signal reproduction circuit which can be used in relation to this invention;

FIG. 6 shows an example of construction of a linear type shift register circuit for T^(i-7) operation;

FIG. 7 shows an example of an M matrix operation circuit; and

FIG. 8 shows a block diagram of the PCM recorder as an example of the use of this invention.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

The invention is described here, using an example of its application to a two channel PCM tape recorder and referring to the attached drawings.

With the PCM tape recorder in this example, the signal to be recorded is converted before being recorded into a television signal format. 245H (H: one horizontal line period) are used in one vertical scanning period and the remaining 17.5H are used for the vertical synchronizing signal. The data which can be held by one H are, three for the L (left) channel, and three for the R (right) channel. Thus, the sampling frequency is 44.056 kHz.

The general construction of conventional PCM tape recorders is well known and is not explained in detail here. The generating method of the first check code (hereafter referred to as the P code), which is one of the components of the signal used by this invention, is shown in Table 1. The bits of individual codes are shown in the lower rows of Table 1.

Referring to Table 1, P denotes a P code and W₁ -W₆ denote sampled data words. Bits P₁ -P₁₄ of P code are calculated by modulo 2 operation of respective bits a₁ -a₁₄ of W₁, bits b₁ -b₁₄ of W₂, bits c₁ -c₁₄ of W₃, bits d₁ -d₁₄ of W₄, bits e₁ -e₁₄ of W₅, and bits f₁ -f₁₄ of W₆. For this example equipment, sample data words W₁ -W₆ are composed of 14 bits. Therefore, the P code is also composed of 14 bits. This is expressed by the following formula:

    P=W.sub.1 ⊕W.sub.2 ⊕W.sub.3 ⊕W.sub.4 ⊕W.sub.5 ⊕W.sub.6 (1).

The second check code (hereafter referred to as the Q code) is obtained through modulo 2 operation by operating matrices T⁶,T⁵,T⁴,T³,T² and T on respective sample data words of W₁ -W₆. This is expressed with the following formula:

    Q=T.sup.6 W.sub.1 ⊕T.sup.5 W.sub.2 ⊕T.sup.4 W.sub.3 ⊕T.sup.3 W.sub.4 ⊕T.sup.2 W.sub.5 ⊕TW.sub.6                (2)

When T matrix is an associated matrix of a polynomial, the matrix is written as follows: ##EQU1## In this case the bits of the Q code are as shown in Table 2. The parity check matrix for code word (W₁,W₂,W₃,W₄,W₅,W₆,P,Q)^(T) is expressed as follows: ##EQU2## Where A^(T) denotes transposition of A matrix and I denotes a unit matrix.

The sampled data words W₁ -W₆, consisting of 14 bits, and check codes P and Q are located in the recorded signal with spacing D as counted in H-units. Hereafter this process is referred to as interleaving.

Construction of the signal positioned in 1H is shown in FIG. 1. In the figure, L and R denote the digitized left signal and right signal. The subscripts indicate the sampling sequence. Therefore, the above-mentioned sampled data words W₁ -W₆ correspond to L₁,R₁,L₂,R₂,L₃, and R₃ and the P code and Q code accompanying the sample data of the corresponding set are denoted by P₁ and Q₁.

The data and check codes of the same set are positioned with a spacing of D(H). An example of layout is shown in FIG. 2. Referring to FIG. 2, each section in the lateral direction indicates data in 1H. The third check code is added at the end in order to check whether the data in 1H has been subjected to errors. In this example, a cyclic redundancy check code (hereafter abbreviated as CRC) of 16 bits is used for the third check code. In FIG. 2, CRC at the last part of the data of 1H is the third check code.

A set of data, L₁,R₁,L₂,R₂,L₃,R₃, and codes P1 and Q1 are positioned with distance D(H) as shown in FIG. 2. The purpose of the above is to reduce the possibility of occurrence of two or more data errors of the same set due to the same cause. With this example equipment, one set of data (total of data and check codes) comprises 8 words and the data set which is located in 1H is also 8 words. Thus, their numbers of data words conform. Thanks to this conformity, data reproduction can be started at any position. That is to say, regardless of the starting position of reproduction, one set of data is reproduced in the order of the first data of the initial H period, the second data after D(H) period, the third data in the H period after 2D(H) period, and so on. If the numbers did not conform, since the data have certain periodical features, a certain means of identification would be required for the layout of data to reproduce a set of data, and the signal circuit would become complicated.

The circuits which generate the P code and Q code are shown in FIG. 3. The P code is the result of modulo 2 operation on each bit of data words W₁ -W₆. Therefore, when the data words are applied sequentially, starting with W₁ to input line 17, the input signal and the contents of register 12 are subjected to modulo 2 operation for each bit by the exclusive OR circuit 10 and the result of operation is stored in register 12. If the register is cleared initially, the contents of register 12 become W₁, when W₁ is input, and the above contents become W₁ ⊕W₂ when W₂ is input. When words are input up to W₆ in a similar manner, contents R₁ of shift register 12 become as follows: ##EQU3## Where Σ denotes modulo 2 addition operation. This data conforms with the above-mentioned P code. The P code is thus produced.

When register 13 is cleared and W₁ is input to input line 17 in a similar manner, the data is fed to the register via matrix circuit 14 and the contents of the register become TW₁. Next, as W₂ is input, the contents of the register become T(W₂ ⊕TW₁) and therefore, when words are input sequentially up to W₆, contents R₂ of the shift register become as follows: ##EQU4## This data conforms with the Q code. Thus a Q code is created in register 13.

Matrix circuit 14 performs a matrix operation. A circuit composition for matrix T corresponding to the above-mentioned polynominal of 1+x⁸ +x¹⁴ is shown in FIG. 4. Thus, matrix circuit 14 can be constructed with a single 2-input exclusive OR circuit 20.

The above data and the P and Q codes are recorded by converting their arrangement onto the time axis and converting them into a form of television signal by adding one CRC per eight data words. The recording method is well known and therefore not described here.

The reproduction processes of the above-mentioned codes are described in the following.

It is clear that when one of the data words in one data set has been subjected to error, it can be corrected by means of the P code. When two of the data words in one data set are subjected to errors, assuming that i-th order data word W_(i) and j-th order data word W_(j) are subjected to errors and denoting the respective error patterns by e_(i) and e_(j), the following equations can be written. ##EQU5## Thus the result is not equal to 0. Denoting the right-hand terms of the above equations by S₁ and S₂ respectively, the following equations can be written:

    S.sub.1 =e.sub.i ⊕e.sub.j                              (7)

    S.sub.2 =T.sup.7-i e.sub.i ⊕T.sup.7-1 e.sub.j          (8)

Solving the above equations for e_(i) and e_(j), the following equations are yielded:

    e.sub.j =(I⊕T.sup.i-j).sup.-1 (S.sub.1 ⊕T.sup.i-7 S.sub.2) (9)

    e.sub.i =S.sub.1 ⊕e.sub.j                              (10)

Where I denotes a unit matrix. In order for the above equation to be solvable, it is a prerequisite that matrices T⁻¹ -T⁻⁶ and matrices (1+T⁻¹)⁻¹ -(1+T⁻⁵)⁻¹ exist.

Assuming K as expressed by equation (11) and M_(K) as expressed by equation (12), equations (9) and (10) can be written as equations (13) and (14).

    K=i-j                                                      (11)

    M.sub.K =(1⊕T.sup.K).sup.-1                            (12)

    e.sub.j =M.sub.K (S.sub.i ⊕T.sup.i-7 S.sub.2)          (13)

    e.sub.i =S.sub.i ⊕e.sub.j                              (14)

As error patterns e_(i) and e_(j) can be calculated with equations (13) and (14), the corrective operations can be done even when the two data words have been subjected to errors.

Another possible pattern of double errors is that one of the data words and one of the P or Q codes have been subjected to errors. In this case, as viewed from the standpoint of the check code (which has not been subjected to error) and the data, the error state is a single error and the correction operation can be done by means of the check code which has not been subjected to error.

As explained in the above, the codes have a function of correcting errors of any two words of the data. In this case a pointer which indicates the error address is required. The afore-mentioned CRC has this function. An example of a signal reproduction circuit feasible with this invention is shown in FIG. 5.

To input line 100, one set of data words W₁,W₂,W₃,W₄,W₅,W₆, and P and Q are sequentially applied after being reproduced and de-interleaved. To input line 101, respective data and the result of the check of CRC of H, to which the check code belongs, is input.

Syndrome S₁ is expressed as follows: ##EQU6## Therefore, syndrome S₁ can be produced by performing modulo 2 operation sequentially on data words W₁ -W₆ and P code with register 120 exclusive OR circuit 110. Syndrome S₂, on the other hand, can be produced with exclusive OR circuit 111, matrix circuit 121 and register 122 in a manner similar to when creating the Q code. Syndrome S₂ is expressed as follows: ##EQU7## Because register 122 performs operation on matrix T even when the Q code is input, the result becomes as follows: ##EQU8## Due to the above, first matrix circuit 123 is designed so that the data is multiplied by T⁻¹ as an extra factor.

Error decoder 125 outputs, based on the results of the CRC check on data which are sequentially input, the initial error data No. i to the first matrix and K (where K=i-j), which represents the difference between two error data, to second matrix circuit 124. The first matrix circuit performs the multiplication operation of the output of register 122 by T^(i-8). As a result, T^(i-7) S₂ is output to exclusive OR circuit 112. Exclusive OR circuit 112 performs modulo 2 addition operation on T^(i-7) S₂ and the contents of register 120 and sends the result of the calculation to second matrix circuit 124.

Second matrix circuit 124, based on difference K between the two errors output from error decoder 125 performs operation on M_(K) matrix for (S₁ ⊕T^(i-7) S₂) and delivers its output as error pattern e_(j).

On the other hand, exclusive OR circuit 113 performs modulo 2 operation on syndrome S₁ and error pattern e_(j), thereby producing the other error pattern e_(i). When error patterns are as defined above, the errors are corrected and the correct data is obtained by performing modulo 2 addition operation of the error patterns to the data which has been subjected to errors.

First matrix circuit 123 performs matrix operation on T⁻² -T⁻⁷ based on the value of i. This operation is performed by a linear shift register. An example of circuit construction of a shift register is shown in FIG. 6. This shift register has the reverse connections to that for polynomial x¹⁴ +x⁸ +1 and, after inputting the data of x₁ -x₁₄ to 8-bit parallel shift register 200 and 6-bit parallel loaded shift register 201, is shifted by one shift serially so that the contents of the shift register become the result of T⁻¹ operation.

Item 202 is an exclusive OR circuit. When this circuit shifts i-8 times, the result is the same as the T^(i-8) operation which has been done and the result is expressed as follows.

    Y=T.sup.i-8 x                                              (18)

Of matrix M_(K) processed by second matrix circuit 124, there are four types of matrices, M₁ -M₅. The contents of these matrices are shown in Table 3.

Second matrix circuit 124 performs matrix operation on these matrices in response to the value of K. If all matrix operations are to be performed by an ROM (read only memory), the required capacity of the ROM is as follows:

    2.sup.14 ×14×5=1146880(bits)                   (19)

With the example shown in FIG. 7, the matrix operation is performed in the column direction so that hardware is simplified. The required capacity of the ROM in this case is 980 bits.

Judgement of which one of M₁ -M₅ matrices is to be performed is done by referring to difference K (K=i-j) of two error data. In the example shown in FIG. 5, the value is provided with three bits of K₁,K₂ and K₃. The values for one column of given matrix M are provided with 14 bits of R₁ -R₁₄. Designation of column is done by the output of 14-base counter 301, which is driven by clock CK, and the data is sent to address designation A₁ -A₄ of ROM 300.

Input X(x₁ -x₁₄) is multiplied by one column of data R₁ -R₁₄ (which is output from ROM 300) of M matrix for each bit by AND array 304, it is subject to modulo 2 addition operation by the modulo 2 adder 304 and becomes a 1-bit signal. Then it is fed to serial input parallel output shift register 302 which is driven by clock CK. The M matrix is operated column by column and fourteen operations are done to complete processing for it. Thus, the operation time of the M matrix is 14-clock time or over.

As described in the above, the codes used relating to this invention can be easily generated and reproduced. They have a high correcting function so that errors of any two data in one data set can be corrected.

Construction of the generating circuit and reproducing circuit are largely affected by the T matrix used. As for the T matrix, any type of matrix can be used, as long as the M matrix to be processed when reproducing exists. Yet it is most desirable to use a matrix which makes the operation of matrix T or T⁻¹ easier. From this viewpoint a matrix which corresponds to the following polynomial is used:

    1+x.sup.8 +x.sup.14                                        (20)

A matrix for a general matrix of formula (20) is written as follows: ##EQU9## While g₀ is constantly 1, the number of 1's in g₁ -g₁₃ depends on the number of exclusive OR's in the T matrix operation circuit. It is more desirable that the number of 1's is smaller. It is ideal that only one of g₁ -g₁₃ is "1" and all the others are "0". This state corresponds to the following prenomial:

    1+x.sup.n +x.sup.14                                        (22)

The inventors calculated the existence of M₁ -M₅ matrices with n for 1-13 and found the existence of the following eight polynomials:

    1+x.sup.2 +x.sup.14                                        (23a)

    1+x.sup.3 +x.sup.14                                        (23b)

    1+x.sup.5 +x.sup.14                                        (23c)

    1+x.sup.6 +x.sup.14                                        (23d)

    1+x.sup.8 +x.sup.14                                        (23e)

    1+x.sup.9 +x.sup.14                                        (23f)

    1+x.sup.11 +x.sup.14                                       (23g)

    1+x.sup.12 +x.sup.14                                       (23h)

Any one of the above eight polynomials can be used. Because most TTL's and other standard IC's are of 8-bit construction, the following polynomial was selected for this sample of equipment for the invention.

    1+x.sup.8 +x.sup.14

The construction of the PCM recorder as an example of use of this invention with the above codes is shown in FIG. 8. Referring to FIG. 8, the right (R) and left (L) stereophonic signals supplied to input terminals 401 and 402 are converted into digital signals by A-D converters (analog-to-digital converters) 410 and 411 and then the signals are fed to PQ code generator circuit 420.

PQ code generator circuit 420 (with three R channels of sample data closely positioned timewise, and three R channels, or a total of six channels as one set) generates both P and Q codes which are sent to memory circuit 430, which performs the interleaving operation. The data, interleaved by memory circuit 430, is fed to the CRC generator circuit, which produces one CRC code per eight codes and data of different sets so that the CRC code is added, is converted into television format signals by the television signal generator circuit 450, and then is recorded on magnetic tape by the rotary heads of recording/reproducing section 470. As for recording/reproducing section 470, conventional helical scanning type 2-head system record/playback equipment can be used.

For playback, on the other hand, the signal reproduced from the magnetic tape (the signal which is similar to television signal in identical form with said record signal as when it was recorded) is subjected to synchronization signal separation by synchronization signal separator circuit 451 and fed to timing signal generator circuit 460 which generates a timing signal for driving the playback circuits.

The signal conditioned as above is checked by CRC check circuit 441 to see if it was subjected to any error when in the recording operation. Then the signal, together with the signal representing the result of the check, is fed to memory circuit 431 and is de-interleaved, restoring a sampling time sequence the same as that of the input stereo signals. The output signal of memory circuit 431, fed to P Q code restoration circuit 421, is subjected to error correction sequentially for each set of signals, and is separated into L and R channel signals. These signals are converted back into the original analog signals by D-A converters 412 and 413. The resultant analog signals are fed to output terminals 403 and 404.

In general, when signals are recorded on magnetic tape with rotary heads, most code errors are caused by drop out. The error factor is in the order of 10⁻³ -10⁻⁶ in CRC units. Errors caused by drop out are often synchronous errors and cannot be effectively detected by addition of a single CRC signal for each synchronization signal, because CRC checking only detects the creation of errors.

When a cyclic redundancy check code is used for error detection only, although drop out errors and other burst states are overlooked by a probability of 2⁻¹⁶, all other errors can be detected. With the PCM tape recorder used in this example, even when data is recorded on tape which has an error factor of 10⁻³, the overlooked rate is less than one overlooked error per hour. The probability of 3H or over of errors within 8H, which includes one set of data, is approximately 21 P_(H) 3, where P_(H) denotes the probability of H errors. The probability of errors which cannot be corrected by the use of these codes is approximately one error per hour, which is roughly equal to errors overlooked by CRC checking. Thus, the error correction factor is as high as that of overlook in CRC detection.

The codes used in this invention have a capability of single-error correction without being supported by the CRC error detection function. In such cases, error correction is done in the manner described in the following:

Assume that W_(i) from data W₁ -W₆ is subjected to an error. The error pattern (e_(i)) in this case can be expressed as follows: ##EQU10## Therefore, the relationship between S₁ and S₂ can be expressed as follows:

    S.sub.1 =T.sup.i-7 S.sub.2                                 (26)

Due to the above relationship, the erroneous data can be located by multiplying S₂ by factor of T⁻¹ until the value conforms with S₁ and, thus, correction can be done by means of S₁.

A disadvantage of this method is that the signal reproduction circuit becomes slightly sophisticated. However, when error overlook by CRC check is unallowable, this method may be used in conjunction. This method prevents errors caused by overlook by CRC check and improves the correction factor by the order of one or over.

As is apparent from the above description, this invention enables realization of signal processing apparatus of high error correction capability, with simple circuitry for signal reproduction, by using a CRC circuit which has high error correction capability exclusively for error correction. This makes location of error addresses easier. This invention also uses the P and Q codes as error correction codes for correction of up to two errors. This invention is especially applicable to PCM tape recorders which perform basically word-unit processes by making the bit construction of the words which generate codes conform with the bit number of the sampled data.

                  TABLE 1                                                          ______________________________________                                         P = W.sub.1                                                                              ⊕W.sub.2                                                                            ⊕W.sub.3                                                                           ⊕W.sub.4                                                                          ⊕W.sub.5                                                                         ⊕W.sub.6                           ______________________________________                                         p.sub.1 = a.sub.1                                                                        ⊕b.sub.1                                                                            ⊕c.sub.1                                                                           ⊕d.sub.1                                                                          ⊕e.sub.1                                                                         ⊕f.sub.1                           p.sub.1 = a.sub.2                                                                        ⊕b.sub.2                                                                            ⊕c.sub.2                                                                           ⊕d.sub.2                                                                          ⊕e.sub.2                                                                         ⊕f.sub.2                           p.sub.3 = a.sub.3                                                                        ⊕b.sub.3                                                                            ⊕c.sub.3                                                                           ⊕d.sub.3                                                                          ⊕e.sub.3                                                                         ⊕f.sub.3                           p.sub.4 = a.sub.4                                                                        ⊕b.sub.4                                                                            ⊕c.sub.4                                                                           ⊕d.sub.4                                                                          ⊕e.sub.4                                                                         ⊕f.sub.4                           p.sub.5 = a.sub.5                                                                        ⊕b.sub.5                                                                            ⊕c.sub.5                                                                           ⊕d.sub.5                                                                          ⊕e.sub.5                                                                         ⊕f.sub.5                           p.sub.6 = a.sub.6                                                                        ⊕b.sub.6                                                                            ⊕c.sub.6                                                                           ⊕d.sub.6                                                                          ⊕e.sub.6                                                                         ⊕f.sub.6                           p.sub.7 = a.sub.7                                                                        ⊕b.sub.7                                                                            ⊕c.sub.7                                                                           ⊕d.sub.7                                                                          ⊕e.sub.7                                                                         ⊕f.sub.7                           p.sub.8 = a.sub.8                                                                        ⊕b.sub.8                                                                            ⊕c.sub.8                                                                           ⊕d.sub.8                                                                          ⊕e.sub.8                                                                         ⊕f.sub.8                           p.sub.9 = a.sub.9                                                                        ⊕b.sub.9                                                                            ⊕c.sub.9                                                                           ⊕d.sub.9                                                                          ⊕e.sub.9                                                                         ⊕f.sub.9                           p.sub.10 = a.sub.10                                                                      ⊕b.sub.10                                                                           ⊕c.sub.10                                                                          ⊕d.sub.10                                                                         ⊕e.sub.10                                                                        ⊕f.sub.10                          p.sub.11 = a.sub.11                                                                      ⊕b.sub.11                                                                           ⊕c.sub.11                                                                          ⊕d.sub.11                                                                         ⊕e.sub.11                                                                        ⊕f.sub.11                          p.sub.12 = a.sub.12                                                                      ⊕b.sub.12                                                                           ⊕c.sub.12                                                                          ⊕d.sub.12                                                                         ⊕e.sub.12                                                                        ⊕f.sub.12                          p.sub.13 = a.sub.13                                                                      ⊕b.sub.13                                                                           ⊕c.sub.13                                                                          ⊕d.sub.13                                                                         ⊕e.sub.13                                                                        ⊕f.sub.13                          p.sub.14 = a.sub.14                                                                      ⊕b.sub.14                                                                           ⊕c.sub.14                                                                          ⊕d.sub.14                                                                         ⊕e.sub.14                                                                        ⊕f.sub.14                          ______________________________________                                    

                                      TABLE 2                                      __________________________________________________________________________     Q = T.sup.6 W.sub.1                                                                  ⊕                                                                             T.sup.5 W.sub.2                                                                    ⊕                                                                             T.sup.4 W.sub.3                                                                   ⊕                                                                              T.sup.3 W.sub.4                                                                    ⊕                                                                             T.sup.2 W.sub.5                                                                    ⊕                                                                             T W.sub.6                                 __________________________________________________________________________     q.sub.1 = a.sub.7                                                                    ⊕a.sub.1                                                                      ⊕b.sub.6                                                                       ⊕                                                                             c.sub.5                                                                           ⊕                                                                              d.sub.4                                                                            ⊕                                                                            e.sub.3                                                                             ⊕                                                                             f.sub.2                                   q.sub.2 = a.sub.8                                                                    ⊕a.sub.2                                                                      ⊕b.sub.7                                                                       ⊕b.sub.1                                                                      ⊕c.sub.6                                                                      ⊕                                                                              d.sub.5                                                                            ⊕                                                                            e.sub.4                                                                             ⊕                                                                             f.sub.3                                   q.sub.3 = a.sub.9                                                                    ⊕a.sub.3                                                                      ⊕b.sub.8                                                                       ⊕b.sub.2                                                                      ⊕c.sub.7                                                                      ⊕c.sub.1                                                                       ⊕d.sub.6                                                                       ⊕                                                                            e.sub.5                                                                             ⊕                                                                             f.sub.4                                   q.sub.4 = a.sub.10                                                                   ⊕a.sub.4                                                                      ⊕b.sub.9                                                                       ⊕b.sub.3                                                                      ⊕c.sub.8                                                                      ⊕c.sub.2                                                                       ⊕d.sub.7                                                                       ⊕d.sub.1                                                                     ⊕e.sub.6                                                                        ⊕                                                                             f.sub.5                                   q.sub.5 = a.sub.11                                                                   ⊕a.sub.5                                                                      ⊕b.sub. 10                                                                     ⊕b.sub.4                                                                      ⊕c.sub.9                                                                      ⊕c.sub.3                                                                       ⊕d.sub.8                                                                       ⊕d.sub.2                                                                     ⊕e.sub.7                                                                        ⊕e.sub.1                                                                      ⊕f.sub.6                              q.sub.6 = a.sub.12                                                                   ⊕a.sub.6                                                                      ⊕b.sub.11                                                                      ⊕b.sub.5                                                                      ⊕c.sub.10                                                                     ⊕c.sub.4                                                                       ⊕d.sub.9                                                                       ⊕d.sub.3                                                                     ⊕e.sub.8                                                                        ⊕e.sub.2                                                                      ⊕f.sub.7                                                                       ⊕f.sub.1                          q.sub.7 = a.sub.13                                                                   ⊕                                                                             b.sub.12                                                                           ⊕                                                                             c.sub.11                                                                          ⊕                                                                              d.sub.10                                                                           ⊕                                                                            e.sub.9                                                                             ⊕                                                                             f.sub.8                                   q.sub.8 = a.sub.14                                                                   ⊕                                                                             b.sub.13                                                                           ⊕                                                                             c.sub.12                                                                          ⊕                                                                              d.sub.11                                                                           ⊕                                                                            e.sub.10                                                                            ⊕                                                                             f.sub.9                                   q.sub.9 = a.sub.1                                                                    ⊕                                                                             b.sub.14                                                                           ⊕                                                                             c.sub.13                                                                          ⊕                                                                              d.sub.12                                                                           ⊕                                                                            e.sub.11                                                                            ⊕                                                                             f.sub.10                                  q.sub.10 = a.sub.2                                                                   ⊕                                                                             b.sub.1                                                                            ⊕                                                                             c.sub.14                                                                          ⊕                                                                              d.sub.13                                                                           ⊕                                                                            e.sub.12                                                                            ⊕                                                                             f.sub.11                                  q.sub.11 = a.sub.3                                                                   ⊕                                                                             b.sub.2                                                                            ⊕                                                                             c.sub.1                                                                           ⊕                                                                              d.sub.14                                                                           ⊕                                                                            e.sub.13                                                                            ⊕                                                                             f.sub.12                                  q.sub.12 = a.sub.4                                                                   ⊕                                                                             b.sub.3                                                                            ⊕                                                                             c.sub.2                                                                           ⊕                                                                              d.sub.1                                                                            ⊕                                                                            e.sub.14                                                                            ⊕                                                                             f.sub.13                                  q.sub.13 = a.sub.5                                                                   ⊕                                                                             b.sub.4                                                                            ⊕                                                                             c.sub.3                                                                           ⊕                                                                              d.sub.2                                                                            ⊕                                                                            e.sub.1                                                                             ⊕                                                                             f.sub.14                                  q.sub.14 = a.sub.6                                                                   ⊕                                                                             b.sub.5                                                                            ⊕                                                                             c.sub.4                                                                           ⊕                                                                              d.sub.3                                                                            ⊕                                                                            e.sub.2                                                                             ⊕                                                                             f.sub.1                                   __________________________________________________________________________

                  TABLE 3                                                          ______________________________________                                          ##STR1##                                                                       ##STR2##                                                                       ##STR3##                                                                       ##STR4##                                                                       ##STR5##                                                                      ______________________________________                                     

What is claimed is:
 1. A digital signal processor for use in recording equipment which converts an analog signal into a pulse-code modulation signal and records said pulse-code modulation signal, said processor comprising:a data input terminal to which are inputted a plurality of data words, composing a series of data sets, each data set being composed of K data words (K denotes an integer), each data word being composed of G data bits (G denotes an integer); a first check code generating means coupled to said data input terminal for generating in each data set a G bit first check code by combining corresponding bits of all positions of respective data words in each data set via a modulo 2 summation expressed as: ##EQU11## where W_(i) is said data word and W_(i) =(w_(i1), W_(i2), . . . , w_(iG)), w_(ij) (j=1, 2, . . . , G) is a bit of 0 or 1, and ##EQU12## means the modulo 2 summation of K data words; a second check code generating means coupled to said data input terminal for generating in each data set a G bit second check code which is the modulo 2 sum of the current word and the previous result being multiplied by matrix T to generate the current sum, said second check code being expressed as: ##EQU13## where, T is an associated matrix of a G-th order polynomial; a memory means coupled to both said first check code generating means and said second check code generating means for (a) temporarily storing said series of data sets, corresponding first check codes and corresponding second check codes, and (b) constructing data blocks each composed of K data words, one first check code and one second check code, the first data word of said data block being the first data word of the first set of the stored data sets, the second word of said data block being the second data word of the second data set of the stored data sets, . . . , the Kth data word of said data block being the Kth data word of the Kth data set of the stored data sets, said one first check code being the first check code generated from the (K+1)th data set of the stored data sets, and said one second check code being the second check code generated from the (K+2)th data set of the stored data sets; and a third check code generating means coupled to said memory means for generating from each of said data blocks a third check code which is a redundant word for error detection, said third check code being located at a position next to the second check code in said each data block on a time axis, said each data block including said third check code being said pulse-code modulation signal to be recorded.
 2. A digital signal processor for use in reproducing equipment which reproduces and converts a pulse-code modulation signal into an analog signal, said processor comprising:a data input terminal to which are inputted a plurality of data words, composing a series of data sets, each data set being composed of K data words (K denotes an integer), each data word being composed of G data bits (G denotes an integer); a first check code generating means coupled to said data input terminal for generating in each data set a G bit first check code by combining corresponding bits of all positions of respective data words in each data set via a modulo 2 summation expressed as: ##EQU14## where W_(i) is said data word and W_(i) =(w_(i1), w_(i2), . . . , w_(iG)), w_(ij) (j=1, 2, . . . , G) is a bit of 0 or 1, and ##EQU15## means the modulo 2 summation of K data words; a second check code generating means coupled to said data input terminal for generating in each data set a G bit second check code which is the modulo 2 sum of the current word and the previous result being multiplied by matrix T to generate the current sum, said second check code being expressed as: ##EQU16## where, T is an associated matrix of a G-th order polynomial; a memory means coupled to both said first check code generating means and said second check code generating means for (a) temporarily storing said series of data sets, corresponding first check codes and corresponding second check codes, and (b) constructing data blocks each composed of K data words, one first check code and one second check code, the first data word of said data block being the first data word of the first data set of the stored data sets, the second word of said data block being the second data word of the second data set of the stored data sets, the Kth data word of said data block being the Kth data word of the Kth data set of the stored data sets, said one first check code being the first check code generated from the (K+1)th data set of the stored data sets, and said one second check code being the second check code generated from the (K+2)th data set of the stored data sets; and a third check code generating means coupled to said memory means for generating from each of said data blocks a third check code which is a redundant word for error detection, said third check code being located at a position next to the second check code in said each data block on a time axis, said each data block including said third check code being said pulse-code modulation signal to be recorded. 